package com.hd.hdxgddtools.mybatis.config;


import lombok.Data;

@Data
public class DataSourceConfig {
    private String schemaName;
    private String url;
    private String driverName;
    private String username;
    private String password;

    public com.baomidou.mybatisplus.generator.config.DataSourceConfig toDataSourceConfig() {
        com.baomidou.mybatisplus.generator.config.DataSourceConfig config = new com.baomidou.mybatisplus.generator.config.DataSourceConfig();
        config
                .setSchemaName(this.schemaName)
                .setUrl(this.url)
                .setDriverName(this.driverName)
                .setUsername(this.username)
                .setPassword(this.password);
        config.setDbType(config.getDbType());
        config.setDbQuery(config.getDbQuery());
        config.setTypeConvert(config.getTypeConvert());
        return config;
    }
}
